﻿using System;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.Office.OneNote
{
    partial class OneNoteApplication
    {
        private static readonly OneNoteApplication _instance = new OneNoteApplication();

        [SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline")]
        static OneNoteApplication()
        {
            // Explicit static constructor to tell C# compiler
            // not to mark type as beforefieldinit

            // http://www.yoda.arachsys.com/csharp/singleton.html
        }

        public static OneNoteApplication Current
        {
            get { return _instance; }
        }
    }
}
